package com.first.teacher.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.first.common.pojo.EduTeacher;
import com.first.common.pojo.TbCheckTeacher;
import com.first.teacher.vo.TeacherVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @program: first-project
 * @description:
 * @author: 马英贤
 * @create: 2023-05-26 16:01
 **/
public interface TeacherMapper extends BaseMapper<EduTeacher> {
    //void update(EduTeacher eduTeacher);

    Page<EduTeacher> findByPageAll(Page<EduTeacher> Page, @Param("ew") Wrapper<EduTeacher> wrapper);

    @Select("select check_status from tb_check_teacher where teacher_id = (select id from edu_teacher where mobile = #{mobile})")
    String selectTeacherId(String mobile);

}
